fun main() {
    val mutableListOf = mutableListOf("jason", "jack", "jacky")
    mutableListOf.add("jimmy")
    mutableListOf.remove("jack")
    println(mutableListOf)

    //不可变转可变
    listOf("jason", "jack", "jacky").toMutableList()
    //可变转不可变
    kotlin.collections.mutableListOf("jason", "jack", "jacky").toList()

    mutableListOf += "kk"
    println(mutableListOf)

    mutableListOf -= "jacky"
    println(mutableListOf)

    mutableListOf.removeIf{ it.contains("jason")}
    println(mutableListOf)
}